package com.monicash.monicash.netconfig

import com.monicash.monicash.bean.TestBean
import okhttp3.Request
import okhttp3.RequestBody
import okhttp3.ResponseBody
import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

/**
 * <pre>
 *     author : kuang
 *     time   : 2023/11/29
 *     desc   :
 *     version: 1.0
 * </pre>
 */
interface ApiLoginServer {

    //实例
    @GET("posts")
    suspend fun test(): List<TestBean>

    @POST("/security_manvtl/getWebLinkConfig")
    suspend fun getWebLink():ResponseBody


    //用户短信登录接口
    @POST("/security_manvtl/loginBySmsCode")
    suspend fun loginBySmsCode(): ResponseBody

    @POST("posts")
    suspend fun forgotPassword(): ResponseBody
    // 新用户注册
    @POST("/remote/security_manvtl/register")
    suspend fun accountZiLiPageRegister(@Body string: RequestBody): Response<ResponseBody>

    //发送手机验证码短信
    @POST("/security_manvtl/getSmsCode")
    suspend fun getZiLiPageSmsCode(@Body string: RequestBody): Response<ResponseBody>

    //获取图形验证码
    @POST("/remote/captcha_manvtl/getCaptcha")
    suspend fun getZiLiPageCaptcha(@Body string: RequestBody): Response<ResponseBody>

    //发送手机验证码短信
    @POST("/remote/security_manvtl/initDeviceSeed")
    suspend fun initZiLiPageDeviceSeed(@Body string: RequestBody): Response<ResponseBody>

    //判断手机号是否注册
    @POST("/remote/security_manvtl/checkMobileRegister")
    suspend fun checkZiLiPageMobileRegister(@Body string: RequestBody): Response<ResponseBody>

    @POST("/tifi_slice/loanSecurity_manvtl/getConfigInfoByAppId")
    suspend fun getZiLiPageConfigInfoByAppId(@Body string: RequestBody): Response<ResponseBody>

    //验证短信验证码
    @POST("/remote/security_manvtl/verifySmsCodeForOTP")
    suspend fun verifyZiLiPageSmsCodeForOTP(@Body string: RequestBody): Response<ResponseBody>

    //用户重置密码New（跳过验证码步骤)
    @POST("/security_manvtl/resetPassword")
    suspend fun resetPassword(): ResponseBody

    //用户登录校验
    @POST("/remote/security_manvtl/login")
    suspend fun getZiLiPagesecurityLogin(@Body string: RequestBody): Response<ResponseBody>

    //修改登录密码
    @POST("/security_manvtl/resetPasswd")
    suspend fun resetPasswd(): ResponseBody

    //获取app配置接口
    @POST("/security_manvtl/getApplicationConfig")
    suspend fun getApplicationConfig(): ResponseBody

    //获取VIP配置和购买记录
    @POST("/tifi-security_manvtl/loanSecurity/getVipConfigAndPurchaseRecord")
    suspend fun getVipConfigAndPurchaseRecord(): ResponseBody

    //获取Kyc表单配置信息
    @POST("/security_manvtl/getApplicationUserInfoConfig")
    suspend fun getApplicationUserInfoConfig(): ResponseBody

    //新增VIP反馈
    @POST("/tifi-security_manvtl/loanSecurity/addVipFeedback")
    suspend fun addVipFeedback(): ResponseBody

    //判断VIP反馈是否达到上限
    @POST("/tifi-security_manvtl/loanSecurity/isVipFeedbackOverTimes")
    suspend fun isVipFeedbackOverTimes(): ResponseBody












}